<?
if($_POST[submit])
{

$pesan=urldecode($_POST[FieldData5]);
$pesan=str_replace('\"','"',$pesan);
$pesan=str_replace("\'","'",$pesan);

$kirim="Posted by".":".""." "."$_POST[FieldData0]"."\n\n";

$kirim .="$_POST[url]"."\n";

$kirim .="$pesan"."\n\n";


$kirim .="Contact : "."$_POST[hp]"."\n";
$kirim .="Email".": "."$_POST[FieldData1]"."\n";
$kirim .="Visit My website ".": "."$_POST[FieldData2]"."\n\n";


$sendi= mail("rendiyenzia.bisnis@blogger.com","$_POST[FieldData3]","$kirim\n\n", "FROM:\"agus\"<rendiyenzia.bisnis@blogger.com>\n"."X-IP-Address: $_SERVER[REMOTE_ADDR]\n"."X-Referer: $_SERVER[HTTP_REFERER]\n");

if($sendi)
{
header('location:http://bm.pixub.com/Bisnis%20Mahasiswa/sukses%20mengirim%20iklan.html');
}
else
{
?>
<script>
alert('gagal kirim email');
window.location="http://bm.pixub.com/Bisnis%20Mahasiswa/gagal%20mengirim%20iklan.html";
</script>
<?
}
}
?>